package demo1228.am;

public class SubThread extends Thread {

    public SubThread(String name){
        super(name);
    }
    public SubThread(){
        super();
    }

    @Override
    public void run(){
        //设置线程任务
        for (int i = 0; i < 100; i++) {
            System.out.println(getName()+i);
        }
    }
}
